{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nvar genButtonBorderStyle = function genButtonBorderStyle(buttonTypeCls, borderColor) {\n  return _defineProperty({}, \"> span, > \".concat(buttonTypeCls), {\n    '&:not(:last-child)': _defineProperty({}, \"&, & > \".concat(buttonTypeCls), {\n      '&:not(:disabled)': {\n        borderInlineEndColor: borderColor\n      }\n    }),\n    '&:not(:first-child)': _defineProperty({}, \"&, & > \".concat(buttonTypeCls), {\n      '&:not(:disabled)': {\n        borderInlineStartColor: borderColor\n      }\n    })\n  });\n};\nvar genGroupStyle = function genGroupStyle(token) {\n  var _componentCls, _ref2;\n  var componentCls = token.componentCls,\n    fontSize = token.fontSize,\n    lineWidth = token.lineWidth,\n    colorPrimaryHover = token.colorPrimaryHover,\n    colorErrorHover = token.colorErrorHover;\n  return _defineProperty({}, \"\".concat(componentCls, \"-group\"), [(_ref2 = {\n    position: 'relative',\n    display: 'inline-flex'\n  }, _defineProperty(_ref2, \"> span, > \".concat(componentCls), {\n    '&:not(:last-child)': _defineProperty({}, \"&, & > \".concat(componentCls), {\n      borderStartEndRadius: 0,\n      borderEndEndRadius: 0\n    }),\n    '&:not(:first-child)': _defineProperty({\n      marginInlineStart: -lineWidth\n    }, \"&, & > \".concat(componentCls), {\n      borderStartStartRadius: 0,\n      borderEndStartRadius: 0\n    })\n  }), _defineProperty(_ref2, componentCls, (_componentCls = {\n    position: 'relative',\n    zIndex: 1\n  }, _defineProperty(_componentCls, \"&:hover,\\n          &:focus,\\n          &:active\", {\n    zIndex: 2\n  }), _defineProperty(_componentCls, '&[disabled]', {\n    zIndex: 0\n  }), _componentCls)), _defineProperty(_ref2, \"\".concat(componentCls, \"-icon-only\"), {\n    fontSize: fontSize\n  }), _ref2),\n  // Border Color\n  genButtonBorderStyle(\"\".concat(componentCls, \"-primary\"), colorPrimaryHover), genButtonBorderStyle(\"\".concat(componentCls, \"-danger\"), colorErrorHover)]);\n};\nexport default genGroupStyle;","map":{"version":3,"names":["genButtonBorderStyle","buttonTypeCls","borderColor","borderInlineEndColor","borderInlineStartColor","genGroupStyle","token","componentCls","fontSize","lineWidth","colorPrimaryHover","colorErrorHover","position","display","borderStartEndRadius","borderEndEndRadius","marginInlineStart","borderStartStartRadius","borderEndStartRadius","zIndex"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/button/style/group.js"],"sourcesContent":["const genButtonBorderStyle = (buttonTypeCls, borderColor) => ({\n  // Border\n  [`> span, > ${buttonTypeCls}`]: {\n    '&:not(:last-child)': {\n      [`&, & > ${buttonTypeCls}`]: {\n        '&:not(:disabled)': {\n          borderInlineEndColor: borderColor\n        }\n      }\n    },\n    '&:not(:first-child)': {\n      [`&, & > ${buttonTypeCls}`]: {\n        '&:not(:disabled)': {\n          borderInlineStartColor: borderColor\n        }\n      }\n    }\n  }\n});\nconst genGroupStyle = token => {\n  const {\n    componentCls,\n    fontSize,\n    lineWidth,\n    colorPrimaryHover,\n    colorErrorHover\n  } = token;\n  return {\n    [`${componentCls}-group`]: [{\n      position: 'relative',\n      display: 'inline-flex',\n      // Border\n      [`> span, > ${componentCls}`]: {\n        '&:not(:last-child)': {\n          [`&, & > ${componentCls}`]: {\n            borderStartEndRadius: 0,\n            borderEndEndRadius: 0\n          }\n        },\n        '&:not(:first-child)': {\n          marginInlineStart: -lineWidth,\n          [`&, & > ${componentCls}`]: {\n            borderStartStartRadius: 0,\n            borderEndStartRadius: 0\n          }\n        }\n      },\n      [componentCls]: {\n        position: 'relative',\n        zIndex: 1,\n        [`&:hover,\n          &:focus,\n          &:active`]: {\n          zIndex: 2\n        },\n        '&[disabled]': {\n          zIndex: 0\n        }\n      },\n      [`${componentCls}-icon-only`]: {\n        fontSize\n      }\n    },\n    // Border Color\n    genButtonBorderStyle(`${componentCls}-primary`, colorPrimaryHover), genButtonBorderStyle(`${componentCls}-danger`, colorErrorHover)]\n  };\n};\nexport default genGroupSt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